var core        = require("core")
,   mongoose    = require("mongoose")
,   db          = core.db
,   dbPlugin    = db.plugin
,   utils       = core.utils
,   Schema      = mongoose.Schema;

var Config = function(){

    var Wechat = {
        appid       : { type: String },
        token       : { type: String },
        AppSecret   : { type: String }
    };

    var Wechat = new Schema(Wechat);

    var Config = {
        wechat  : Wechat
    };

    var User = new Schema(Config);

    return User;

};

module.exports = Config;
